package DBLayer;

import java.util.List;

import modelLayer.Supplier;

public interface IFDBSupplier {
	
	
	//return list with all suppliers
	public List<Supplier> getAll(boolean retriveAssociation);
	
	//find supplier by id
	public Supplier findSupplier(String supplierID, boolean retriveAssociation);
	
	//search supplier by name
	public Supplier searchName(String name, boolean retriveAssociation);
	
	//search supplier by address
	public Supplier searchAddress(String address, boolean retriveAssociation);
		
	//search supplier by phoneNo
	public Supplier searchPhoneNo(String phone, boolean retriveAssociation);	

	//insert supplier by object
	public int insertSupplier(Supplier sup, boolean retriveAssociation) throws Exception;
	
	//update in db by object
	public int updateSupplier(Supplier sup, boolean retriveAssociation);
	
	//delete in db by id
	public int deleteSupplier(String supplierID, boolean retriveAssociation);
	
	
	
	
	
}
